package com.third.customer.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.third.customer.model.dao.param.CustomerGroupParam;
import com.third.customer.model.tables.CustomerGroup;
import com.third.customer.service.data.CustomerGroupReq;

import java.util.List;

/**
 * Created by hehuaichun on 2020/5/23.
 */
public interface CustomerGroupService {

    Page<CustomerGroup> list(CustomerGroupParam param);

    CustomerGroup getById(Long companyId, Long groupId);

    List<CustomerGroup> getByIds(Long companyId, List<Long> groupIds);

    CustomerGroup create(Long companyId, CustomerGroupReq req);

    CustomerGroup modify(Long companyId, Long groupId, CustomerGroupReq req);

    boolean delete(Long companyId, Long groupId);

}
